//
//  CommConst.h
//  Massage
//
//  Created by hujlhappy on 13-8-12.
//  Copyright (c) 2013年 jiangtao. All rights reserved.
//

#ifndef Massage_CommConst_h
#define Massage_CommConst_h

//HUD
#define HIDE_AFTER_TIME 3.0
#define HUD_MIN_WIDTH 150.0
#define HUD_MAX_WIDTH 600
#define HUD_HEIGTH 50.0

/*WEB_SERVICE_CONST*/
//result const
#define WEB_REQUEST_TIME 10.0
#define SUCCESS_NODE @"'0'"
#define SUCCESS_IS_HAVE_DATA @"'1'"
#define FAIL_NODE @"'-1'"
#define RTN_NODE @"rtn"
#define CODE_NODE @"code"
#define MESSAGE_NODE @"message"
#define ID_NODE @"id"
#define NAME_NODE @"name"
#define CONNECTION_FAIL_MESSAGE @"服务器连接失败,请重试."

//login const
#define LOGIN_METHOD @"/UserLogin"
#define IPAD_ID_PARAMENT @"vsIPADId"
#define USER_ID_PARAMENT @"vsCzyNo"
#define PASSWORD_PARAMENT @"vsPwd"

#define LOGIN_CZY_NODE @"Czy"
#define LOGIN_FAIL_MESSGE @"登录失败.(%@)"
#define USING_ROOM_METHOD @"/GetBjInfo"
#define USING_ROOM_BJ_NODE @"UsingBj"
#define USING_ROOM_DDJE_NODE @"ddje"
#define USING_ROOM_JZZNO_NODE @"jzzNo"
#define USING_ROOM_FAIL_MESSGE @"正在使用的包间信息读取失败.(%@)"

//update bolck const
#define PARA_LASTUPDATETIME @"vsLastSync"
#define PRODUCT_METHOD @"/GetPxda"
#define UPDATE_FAIL_MESSGE @"基础数据更新失败.(%@)"
#define PRODUCT_DATA @"Pxda"
#define IMAGE_PATH_ATTRIBUTE @"imageZipPath"
#define UPDATE_TIEM_ATTRIBUTE @"LastModifyLsh"
#define CATEGORY_NODE @"Pxlb"
#define SUBCATEGORY_NODE @"Pxlb2"
#define PRODUCT_DETAIL_NODE @"Pxmx"
#define UNIT_NODE @"Unit"
#define CANYJ_NODE @"CanYj"
#define CANYJ_Y @"Y"
#define PRICE_NODE @"Price"
#define ZKL_NODE @"Zkl"
#define IMG_NODE @"Img"
#define IMGSMALL_NODE @"ImgSmall"
#define SEEKDATA_NODE @"seekdata"
#define PXNO_NODE @"Pxno"
#define PAGE_MAX_COUNT 10
#define IMAGE_FOLDER @"/image"
#define IMAGE_ZIP @"/image.zip"

#define ROOM_METHOD @"/GetBjda"
#define ROOM_INFO_NODE @"BjInfo"
#define ROOM_FILE @"/room.xml"
#define ROOM_TYPE_TEA @"茶楼"

//ordered const
#define ORDERED_METHOD @"/GetBjOrder"
#define PARA_ROOM_ID @"vsBjId"
#define ORDERED_FAIL_MESSGE @"历史客单明细获取失败.(%@)"

//save order const
#define ORDER_METHOD @"/SaveOrder"
#define PARA_USER_NAME @"vsCzyXm"
#define PARA_ORDER_DATA @"vsData"
#define SAVE_ORDER_FAIL_MESSGE @"下单失败(%@).请重试"
//order comm const
#define DDLIST_NODE @"Order"
#define DDROW_NODE @"OrderRow"
#define DDID_NODE @"id"
#define DDQTY_NODE @"qty"
#define DDPRICE_NODE @"Je"


#endif
